package com.liusu.file.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MultipartUploadCreateRequest {

    @NotBlank(message = "文件名称不能为空")
    private String fileName;

    @NotNull(message = "文件大小不能为空（Kb）")
    private Integer fileSize;

    @NotNull(message = "分片数量不能为空")
    private Integer chunks;

    @NotBlank(message = "文件类型不能为空")
    private String contentType;
}
